<script type="text/javascript">
$(document).ready(function(){
	$(".cateSearchBtn").on("click",function(e){
		$(".cateNav").toggle();
	});
	$("#searchProductBtn1").on("click",function(e){
		var formObj = document.forms["form_search1"];
		var formEls = formObj.elements;
		//if(formEls["name"].value==''&&formEls["cate_code"].value==''){
		//	alert('请输入商品名称关键字,或者选择要查询的商品分类');
		//	return false;
		//}
		formObj.action = "{:U('Product/index')}";
		formObj.submit();
	});
});
</script>
<!-- 商品搜索 -->
<div class="searchBar clearfix">
	<a href="#" class="cateSearchBtn">商品分类</a>
	<form method="get" action="{:U('Product/index')}" name="form_search1" id="form_search1">
		<input type="text" name="name"  maxlength="50"  placeholder="商品名称" value="{$search.name}"/>
		<input type="hidden" name="cate_code"  value="{$search.cate_code}" />
		<button type="button" id="searchProductBtn1">查询</button>
	</form>
</div>
<div class="cateNav" style="display:none">
	<dl>
		<dt class="qlyp"><a href="/Product/index/cate_code/A01.html"><i class="ico"></i><br>清凉饮品</a></dt>
		<dd class="tags">
			<a href="/Product/index/cate_code/A01.html">全部饮品</a>
			<a href="/Product/index/cate_code/A01001.html">瓶装水</a>
			<a href="/Product/index/cate_code/A01002.html">碳酸饮料</a>
			<a href="/Product/index/cate_code/A01003.html">功能果汁</a>
			<a href="/Product/index/cate_code/A01004.html">咖啡茶饮</a>
			<a href="/Product/index/cate_code/A01005.html">牛奶酸奶</a>
		</dd>
	</dl>
	<dl>
	<dt class="rcsp"><a href="/Product/index/cate_code/A02.html"><i class="ico"></i><br>日常食品</a></dt>
		<dd class="tags">
			<a href="/Product/index/cate_code/A02.html">全部食品</a>
			<a href="/Product/index/cate_code/A02002.html">休闲零食</a>
			<a href="/Product/index/cate_code/A02002.html">饼干糕点</a>
			<a href="/Product/index/cate_code/A02001.html">速食面粥</a>
			<a href="/Product/index/cate_code/A02004.html">厨房调料</a>
			<a href="/Product/index/cate_code/A02005.html">粮油米面</a>
		</dd>
	</dl>
	<dl>
	<dt class="shyp"><a href="/Product/index/cate_code/B01.html"><i class="ico"></i><br>生活用品</a></dt>
		<dd class="tags">
			<a href="/Product/index/cate_code/B01.html">全部用品</a>
			<a href="/Product/index/cate_code/B01002.html">厨房清洁</a>
			<a href="/Product/index/cate_code/B01003.html">学习用品</a>
			<a href="/Product/index/cate_code/B01001.html">个人用品</a>
		</dd>
	</dl>
</div>